<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('coupon/index')}">优惠券列表</a></li>
        <li class="active"><a href="#">编辑优惠券</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('coupon/edit')}"
          method="post">
          <input type="hidden" name="id" value="{$info['id']}">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">满</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="full"
                                       value="{$info['full']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">减</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="reduce"
                                       value="{$info['reduce']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">有效期</label>
                            <div class="col-sm-2">
                                <input type="date" name="stime" class="form-control" value="{$info['stime']}">
                            </div>
                            <label for="input-site-name" class="col-sm-1 control-label" style="text-align:center;">--</label>
                            <div class="col-sm-2">
                                <input type="date" name="etime" class="form-control" value="{$info['etime']}">
                            </div>
                        </div>
                        <div class="form-group">
                          <label for="input-site-name" class="col-sm-2 control-label">发布状态</label>
                          <div class="col-md-3 col-sm-5">
                              <select name="status" class="form-control">
                                  <option <if condition="$info['status'] eq 1"> selected </if> value="1">--发布--</option>
                                  <option <if condition="$info['status'] eq 2"> selected </if> value="2">--下线--</option>
                              </select>
                          </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">备注</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="remark"
                                      value="{$info['remark']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" style="width:150px;" class="btn btn-primary">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>
